
{extend name="index/admin-index" /}
{block name="main"}

  <link rel="stylesheet" href="/static/assets/css/bootstrap.css">
  <script src="/static/assets/js/jquery.min.js"></script>
  <!-- content start -->
  <div class="admin-content">
    <div class="admin-content-body">
      <div class="am-cf am-padding am-padding-bottom-0">
        <div class="am-fl am-cf"><strong class="am-text-primary am-text-lg">权限分配</strong> / <small>Permission assignment</small></div>
      </div>

      <hr/>

      <div style="margin-left:100px">
     
       <p class="am-text-primary am-text-lg">给{$list.name}分配权限</p> 
    <form action="/admin/Role/savenode?id={$list.id}" class="form-inline" enctype="multipart/form-data" method="post" id='form'>
    <div class="form-group has-success has-feedback" style="width:700px">
    {volist name='data' id="vo"}
    <span style='width:100px; margin:20px'>
    <label class="control-label" for="inputSuccess4"><input type="checkbox" name='node[]' value='{$vo.id}' {if condition="in_array($vo['id'],$ro_nodes) eq true"}checked{/if}>{$vo.name}</label>
    {if condition="$i%3 eq 0 "}<br>{/if}
    </span>  
 
    {/volist}
  
    

    <br>
    <br>
    <button href="" type="submit"  class="btn btn-info " style='float:right;' id='add'>添加</button >
    
    </div>
    </form>
    </div>
    
{/block}